<?php
namespace app\ctrl;
use core\lib\excelModel;
use \core\lib\model;
class indexCtrl extends \core\imooc
{
    public function index()
    {
        $exp = new \core\lib\excelModel();
       $exp->export();
        $data = "11";
   $this->assign('data',$data);
    $this->display('index.html');
    }

    public function test(){

        $store=1000;
        $tem = new \app\model\abcModel();
        $redis = $tem::redis();
        $res=$redis->llen('goods_store');
        echo $res;
        $count=$store-$res;
        for($i=0;$i<$count;$i++){
            $redis->lpush('goods_store',1);
        }
        echo $redis->llen('goods_store');
    }



    public function text(){
        file_put_contents("client_1.txt", "client_1 execute");
        echo 'client_1 execute';
    }

    public function text2(){
        file_put_contents("client_2.txt", "client_2 execute");
        echo 'client_2 execute';
    }

}